package com.czkt.shop.controller;

import com.czkt.shop.service.ISeckillService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/seckill")
@CrossOrigin
public class SeckillController {

    @Autowired
    ISeckillService seckillService;

    @RequestMapping("/list")
    public Object list(){
        return seckillService.list();
    }
}
